import React, { Component } from 'react'
// import { NavLink } from 'react-router-dom';
import {reqgetcate} from "../../../../http/api"

export default class banner extends Component {
    constructor(){
        super();
        this.state={
            cate:[]
             
         
        }
    }
   componentDidMount(){
        reqgetcate().then(res=>{
                this.setState({
                    cate:res.data.list,
                })
        })
     
    }
  render() {
    let {cate}=this.state
    return (
      <div>
        <div className="navbaner" >
          
            {cate.map((item)=>{
                return  <div >{item.catename}</div>
            })}
        </div>

      </div>
    )
  }
}
